\hypertarget{struct_timer}{
\section{\-Dokumentacja struktury \-Timer}
\label{struct_timer}\index{\-Timer@{\-Timer}}
}


\-Stoper z możliwością pomiaru czasu z dokładnością do 1 mikrosekundy.  




{\ttfamily \#include $<$timer.\-h$>$}

\subsection*{\-Metody publiczne}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_timer_a5f16e8da27d2a5a5242dead46de05d97}{\-Timer} ()
\item 
\hyperlink{struct_timer_a14fa469c4c295c5fa6e66a4ad1092146}{$\sim$\-Timer} ()
\item 
void \hyperlink{struct_timer_a3a8b5272198d029779dc9302a54305a8}{start} ()
\item 
void \hyperlink{struct_timer_a63f0eb44b27402196590a03781515dba}{stop} ()
\item 
double \hyperlink{struct_timer_aeec8f4f81e1b09c6e00ca6744f01af31}{get\-Elapsed\-Time\-In\-Micro\-Sec} ()
\item 
double \hyperlink{struct_timer_a4f6a151ee9ea8b691bcb677e8ae3f903}{get\-Elapsed\-Time\-In\-Mili\-Sec} ()
\item 
double \hyperlink{struct_timer_ac05212f488db392f857660e28a402927}{get\-Elapsed\-Time\-In\-Sec} ()
\end{DoxyCompactItemize}
\subsection*{\-Atrybuty publiczne}
\begin{DoxyCompactItemize}
\item 
\hypertarget{struct_timer_a18df3817fff6de39d57734bfce0f74b0}{
timeval \hyperlink{struct_timer_a18df3817fff6de39d57734bfce0f74b0}{start\-Time}}
\label{struct_timer_a18df3817fff6de39d57734bfce0f74b0}

\begin{DoxyCompactList}\small\item\em start pomiaru \end{DoxyCompactList}\item 
\hypertarget{struct_timer_af9407bbc30ffa07b84db398b7b38a9c9}{
timeval \hyperlink{struct_timer_af9407bbc30ffa07b84db398b7b38a9c9}{stop\-Time}}
\label{struct_timer_af9407bbc30ffa07b84db398b7b38a9c9}

\begin{DoxyCompactList}\small\item\em koniec pomiaru \end{DoxyCompactList}\item 
\hypertarget{struct_timer_ab26cb8d29a882af7df3924a666fcd00e}{
int \hyperlink{struct_timer_ab26cb8d29a882af7df3924a666fcd00e}{stopped}}
\label{struct_timer_ab26cb8d29a882af7df3924a666fcd00e}

\begin{DoxyCompactList}\small\item\em flaga stopu \end{DoxyCompactList}\item 
\hypertarget{struct_timer_a751780309fb9c17b435a8b87183b91f5}{
double \hyperlink{struct_timer_a751780309fb9c17b435a8b87183b91f5}{start\-Time\-In\-Micro\-Sec}}
\label{struct_timer_a751780309fb9c17b435a8b87183b91f5}

\begin{DoxyCompactList}\small\item\em start pomiaru w mikrosekundach \end{DoxyCompactList}\item 
\hypertarget{struct_timer_aec5f56ad4e309448692f680d339c2d0e}{
double \hyperlink{struct_timer_aec5f56ad4e309448692f680d339c2d0e}{stop\-Time\-In\-Micro\-Sec}}
\label{struct_timer_aec5f56ad4e309448692f680d339c2d0e}

\begin{DoxyCompactList}\small\item\em koniec pomiaru w mikrosekundach \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Opis szczegółowy}
\-Stoper z możliwością pomiaru czasu z dokładnością do 1 mikrosekundy. 

\-Pozwala na pomiar czasu wykonania kodu z dokładnością do mikrosekundy.\par
 \-Wykorzystuje funkcje \-Windows \-A\-P\-I\-: \par

\begin{DoxyItemize}
\item \-Query\-Performance\-Counter() -\/ określenie aktualnej liczby 'ticków' procesora\par

\item \-Query\-Performance\-Frequency() -\/ określenie liczby 'ticków' na sekundę 
\end{DoxyItemize}

\subsection{\-Dokumentacja konstruktora i destruktora}
\hypertarget{struct_timer_a5f16e8da27d2a5a5242dead46de05d97}{
\index{\-Timer@{\-Timer}!\-Timer@{\-Timer}}
\index{\-Timer@{\-Timer}!Timer@{\-Timer}}
\subsubsection[{\-Timer}]{\setlength{\rightskip}{0pt plus 5cm}\-Timer\-::\-Timer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_a5f16e8da27d2a5a5242dead46de05d97}
\-Konstruktor struktury \hyperlink{struct_timer}{\-Timer} \hypertarget{struct_timer_a14fa469c4c295c5fa6e66a4ad1092146}{
\index{\-Timer@{\-Timer}!$\sim$\-Timer@{$\sim$\-Timer}}
\index{$\sim$\-Timer@{$\sim$\-Timer}!Timer@{\-Timer}}
\subsubsection[{$\sim$\-Timer}]{\setlength{\rightskip}{0pt plus 5cm}\-Timer\-::$\sim$\-Timer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_a14fa469c4c295c5fa6e66a4ad1092146}
\-Destruktor struktury \hyperlink{struct_timer}{\-Timer} 

\subsection{\-Dokumentacja funkcji składowych}
\hypertarget{struct_timer_aeec8f4f81e1b09c6e00ca6744f01af31}{
\index{\-Timer@{\-Timer}!get\-Elapsed\-Time\-In\-Micro\-Sec@{get\-Elapsed\-Time\-In\-Micro\-Sec}}
\index{get\-Elapsed\-Time\-In\-Micro\-Sec@{get\-Elapsed\-Time\-In\-Micro\-Sec}!Timer@{\-Timer}}
\subsubsection[{get\-Elapsed\-Time\-In\-Micro\-Sec}]{\setlength{\rightskip}{0pt plus 5cm}double \-Timer\-::get\-Elapsed\-Time\-In\-Micro\-Sec (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_aeec8f4f81e1b09c6e00ca6744f01af31}
\-Metoda zwracająca zmierzony czas w mikrosekundach

\begin{DoxyReturn}{\-Zwraca}
czas w mikrosekundach 
\end{DoxyReturn}
\hypertarget{struct_timer_a4f6a151ee9ea8b691bcb677e8ae3f903}{
\index{\-Timer@{\-Timer}!get\-Elapsed\-Time\-In\-Mili\-Sec@{get\-Elapsed\-Time\-In\-Mili\-Sec}}
\index{get\-Elapsed\-Time\-In\-Mili\-Sec@{get\-Elapsed\-Time\-In\-Mili\-Sec}!Timer@{\-Timer}}
\subsubsection[{get\-Elapsed\-Time\-In\-Mili\-Sec}]{\setlength{\rightskip}{0pt plus 5cm}double \-Timer\-::get\-Elapsed\-Time\-In\-Mili\-Sec (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_a4f6a151ee9ea8b691bcb677e8ae3f903}
\-Metoda zwracająca zmierzony czas w milisekundach

\begin{DoxyReturn}{\-Zwraca}
czas w milisekundach 
\end{DoxyReturn}
\hypertarget{struct_timer_ac05212f488db392f857660e28a402927}{
\index{\-Timer@{\-Timer}!get\-Elapsed\-Time\-In\-Sec@{get\-Elapsed\-Time\-In\-Sec}}
\index{get\-Elapsed\-Time\-In\-Sec@{get\-Elapsed\-Time\-In\-Sec}!Timer@{\-Timer}}
\subsubsection[{get\-Elapsed\-Time\-In\-Sec}]{\setlength{\rightskip}{0pt plus 5cm}double \-Timer\-::get\-Elapsed\-Time\-In\-Sec (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_ac05212f488db392f857660e28a402927}
\-Metoda zwracająca zmierzony czas w sekundach

\begin{DoxyReturn}{\-Zwraca}
czas w sekundach 
\end{DoxyReturn}
\hypertarget{struct_timer_a3a8b5272198d029779dc9302a54305a8}{
\index{\-Timer@{\-Timer}!start@{start}}
\index{start@{start}!Timer@{\-Timer}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}void \-Timer\-::start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_a3a8b5272198d029779dc9302a54305a8}
\-Metoda rozpoczynająca pomiar

\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}
\hypertarget{struct_timer_a63f0eb44b27402196590a03781515dba}{
\index{\-Timer@{\-Timer}!stop@{stop}}
\index{stop@{stop}!Timer@{\-Timer}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}void \-Timer\-::stop (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_timer_a63f0eb44b27402196590a03781515dba}
\-Metoda zatrzymująca pomiar

\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}


\-Dokumentacja dla tej struktury została wygenerowana z plików\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/boski/\-Documents/\-Visual Studio 2008/\-Projects/cuda/blms/\hyperlink{timer_8h}{timer.\-h}\item 
\-C\-:/\-Users/boski/\-Documents/\-Visual Studio 2008/\-Projects/cuda/blms/\hyperlink{timer_8cu}{timer.\-cu}\end{DoxyCompactItemize}
